﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Web.ManageInformation;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            if (WebStudent.Validate(UserName_TextBox.Text, Password_TextBox.Text))
            {
                Response.Redirect("~/Inquiry.aspx");
            }
            else
            {
                Response.Write("<script>alert('用户名或者密码错误!')</script>");
            }
        }
    }
}